package org.example;

import java.util.Scanner;

public class 第2题 {
    public static void main(String[] args) {
        int sum=0;
        int count=0;
        while ( true){

            count++;
            System.out.println("请输入数字：");
            Scanner sc = new Scanner(System.in);
            int n = sc.nextInt();
            if (n%10==3){
                continue;
            }else {
                sum+=n;
                System.out.println("当前输入的数字和："+sum);
                System.out.println("当前输入的数字个数："+count);
            }

        }
    }
}
